import { getStore } from './storage';
export const hasPerm = (vm, name) => {
    return vm.$route.meta.permTypes.includes(name);
};

export const hasR = name => {
    return getStore('roles').includes(name);
};
